<!--
	function reloadNav(action){
		navTab.reload(action,{});
	}
	//全选
	function chooseAll(className){
		var checkboxs = document.getElementsByTagName("input");
		var arrayObj = new Array();
		if (checkboxs != null){
			if (checkboxs.length > 0){
				var count = 0;
				var count2 = 0;
				for (i = 0; i < checkboxs.length; ++i){
					if (checkboxs[i].className == className){
						if (checkboxs[i].checked){
							count++;
						}
						count2++;
						checkboxs[i].checked = 1;
					}
				}
				if (count == count2){
					for (var i = 0; i < checkboxs.length; ++i){
						if (checkboxs[i].className == className){
							checkboxs[i].checked = 0;
						}
					}
				}
			}
		}
	}
	
	//获得被选中的记录
	function getCheckbox(className){
		var checkboxs = document.getElementsByTagName("input");
		var arrayObj = new Array();
		if (checkboxs != null){
			if (checkboxs.length > 0){
				for (var i = 0; i < checkboxs.length; ++i){
					if (checkboxs[i].className == className){
						if (checkboxs[i].checked){
							arrayObj.push(checkboxs[i].value);
						}
					}
				}
			}
			
			return arrayObj;
		}
	}
	//删除
	function remove(delAction,className){
		var arrayObj = getCheckbox(className);
		if (arrayObj.length > 0){
			alertMsg.confirm("您确定删除？",{
				okCall:function(){
					var ids = "";
					for (var j = 0; j < arrayObj.length; ++j){
						if (j == arrayObj.length-1){
							ids += arrayObj[j];
						}else{
							ids += arrayObj[j] + ",";
						}
					}
					$.getJSON(delAction,{ids:ids},
						   function(json){
								if(json.statusCode == "200"){
									alertMsg.correct(json.message);
									if (json.callbackType == "reloadTab"){
										reloadNav(json.action);
									}
								}else if (json.statusCode == "300"){
									alertMsg.error(json.message);
								}
						   }
					);
				}
			});
		}else{
			alertMsg.warn("请选择要删除的记录。");
		}
	}
	
	//编辑
	function edit(className){
		var arrayObj = getCheckbox(className);
		if (arrayObj.length > 0){
			var i = arrayObj.length;
			return arrayObj[i-1];
		}
		
		return "";
	}
	
	//显示节点列表（除了自己）
	function showList(action,obj){ 
		$.getJSON(action,{},
		   function(json){
			   var html = "";
			   for (var i = 0; i < json.length; ++i){
				   html += "<option value='"+json[i].id+"'>"+json[i].name+"</option>";
			   }
			   $(obj).append(html);
		   }
		);
	}
-->